home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Medabots Cardz
/
Medabots CD Cardz Rokusho.bin
/
mac
/
assets
/
constructROKUSHO.swf
/
scripts
/
DefineSprite_145
/
frame_8
/
DoAction.as
Wrap
Text File
|
2001-11-29
|
930b
|
39 lines
xpart = "319";
ypart = "182";
x = getProperty("/metabee left arm", _X);
y = getProperty("/metabee left arm", _Y);
if(xpart + "5" < x)
{
tellTarget("/")
{
setProperty("/metabee left arm", _X, getProperty("/metabee left arm", _X) - "8");
}
}
if(x < xpart - "5")
{
tellTarget("/")
{
setProperty("/metabee left arm", _X, getProperty("/metabee left arm", _X) + "8");
}
}
if(ypart + "5" < y)
{
tellTarget("/")
{
setProperty("/metabee left arm", _Y, getProperty("/metabee left arm", _Y) - "8");
}
}
if(y < ypart - "5")
{
tellTarget("/")
{
setProperty("/metabee left arm", _Y, getProperty("/metabee left arm", _Y) + "8");
}
}
if(xpart - "6" < x and x < xpart + "6" and ypart - "6" < y and y < ypart + "6")
{
setProperty("/metabee left arm button", _visible, "1");
setProperty("/metabee left arm", _visible, "0");
gotoAndStop(1);
}